package action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class LogoutAction extends ActionSupport {
	
	@SuppressWarnings("unchecked")
	@Override
	public String execute() {
	
		Map session = ActionContext.getContext().getSession(); 
		session.put("admin", null);
		session.put("user", null);
		
		return SUCCESS;
	}
}
